package edu.sctu.zhoumengxue.day201505.day20150518.practice;

/**
 * Created by user12 on 2015/5/18.
 */
public class TextOne extends TextMore {

    public TextMore textMore;

    public TextOne(Teacher[] teacher) {
        super(teacher);
    }

    public void getTercherInfo() {
        sortNumber();
        System.out.println(teacher[0].number+":"+teacher[1].number);
    }

    public Student[] getStudent(int code, Student[] student) {
        Student[] studentcode = new Student[student.length];
        for(int i=0;i<student.length;i++){
            if(student[i].code>code){
                studentcode[i] = student[i];
            }


        }
        return studentcode;
    }

    public Student[] getCode() {
        Teacher teacher = priCode();
        Student[] studentnumber = interFaceStudent.getStudents(teacher.student);
        return studentnumber;
    }
        InterFaceStudent interFaceStudent = new InterFaceStudent() {
            @Override
            public Student[] getStudents(Student[] student) {

                Student[] studentnumber = getStudent(60,student);
                return studentnumber;
            }
        };

}
